package com.kizuki.design.chain;

import lombok.Builder;
import lombok.Data;

@Builder
@Data
public class VerifyResult {
    private boolean success;
    private String message;

    public static VerifyResult buildResult(boolean success, String message){
        String mes = success ? "检验通过!":message;
        return VerifyResult.builder().success(success).message(mes).build();
    }
}
